package cn.wsn2018.tools.dao;


import cn.wsn2018.tools.model.Log.LogInfo;
import cn.wsn2018.tools.model.Log.LogsInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LogsInfoDao {
    boolean saveLogsInfo(LogsInfo logsInfo);
    List<LogsInfo> listLogsByPageNum(int pageNum,int pageSize);
    List<LogsInfo> listLogsInfoByUser(String username,int pageNum,int pageSize);
    List<LogsInfo> listLogsInfoByTime(int pageNum,int pageSize,String fromTime,String toTime);
    List<LogsInfo> listLogsInfoByTimeAndName(String username,int pageNum,int pageSize,String fromTime,String toTime);
    List<LogsInfo> listLogsInfoByCond(String username,int pageNum,int pageSize,String fromTime,String toTime);

     boolean saveLogInfo(LogInfo LogInfo,String collectionName);
     List<LogsInfo> listLogInfoByCond(String username,int pageNum, int pageSize, String fromTime, String toTime,Class className,String collectionName);


}
